1
general::
Also, thank goodness or heaven. I'm grateful, as in Thank God you arrived safely, or We didn't, thank goodness, run out of food, or Thank heaven the book arrived on time. These ejaculations originally expressed gratitude to divine providence but today tend to be used in a more casual way. [c. 1200]
American Heritage Idioms